package com.taxx.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.taxx.entity.TaxIncomeReport;
import com.taxx.mapper.TaxIncomeReportMapper;
import com.taxx.service.TaxIncomeReportService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 税务收入信息报送服务实现类
 *
 * @author taxx
 * @since 2024-01-01
 */
@Service
public class TaxIncomeReportServiceImpl extends ServiceImpl<TaxIncomeReportMapper, TaxIncomeReport> implements TaxIncomeReportService {

    @Override
    public boolean isExist(String creditCode, String startTime, String endTime, String batchCode) {
        List<TaxIncomeReport> exist = this.baseMapper.isExist(creditCode, startTime, endTime, batchCode);
        return exist != null && !exist.isEmpty();
    }
}
